package com.wen.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wen.common.R;
import com.wen.pojo.Supplier;
import com.wen.pojo.dto.SupplierDto;
import com.wen.pojo.dto.wen.SupplierANDProductDto;

import java.util.List;

public interface SupplierService extends IService<Supplier> {

//    List<SupplierDto> sel();

     Page<Supplier> queryByPage(SupplierDto dto, Long pageNum, Long pageSize);

     //根据供应商的ID查询出对应月份的收入
     R getSupplierYearMonthsSumTotal(Integer id);

     int addSupplier(Supplier supplier);
     List<SupplierANDProductDto> sel(String name,String id);

}
